/**
 *******************************************************************************
 * @file app_task.h
 * @author .ISS_AUTO (hudandan@issauto.com)
 * @date 2024-09-13  1. Base version;
 *
 * @brief This file for the simple task specification.
 *
 * @copyright Copyright (c) 2024 ISSAUTO TECH Co., Ltd. All rights reserved.
 *
 *******************************************************************************
 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_TASK_H
#define __APP_TASK_H

#ifdef __cplusplus
extern "C" {
#endif


/* Includes ------------------------------------------------------------------*/
#include "main.h"

/** @addtogroup Application Driver Layer Module Configuration(Only For Debug)
  * @{
  */
#if defined(AK601)

#define GPIO_DRV_ENABLE         (1U) //!< DI检测模块使能配置
#define MONITOR_DRV_ENABLE      (1U) //!< 模拟信号监控模块使能配置

/*!< 用户自定义模块 */
#define CAN_MODULE
// #define TTL_MODULE

#else

#define GPIO_DRV_ENABLE         (0U) //!< DI检测模块使能配置
#define MONITOR_DRV_ENABLE      (0U) //!< 模拟信号监控模块使能配置

#endif

/**
  * @}
  */


/* Includes ------------------------------------------------------------------*/
#if (MONITOR_DRV_ENABLE)
#include "analog_monitor.h"
#endif
#if defined(TTL_MODULE)
#include "comm_ttl.h"
#endif

/* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported variables --------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
#include "hcli.h"
extern void cli_sys_handler(unsigned int argc, char *argv[], void *userdata);
extern hcli_obj_t *app_cli_obj_get(void);
extern void app_dm_cli_cmds_add(hcli_obj_t *p_hcli);

void APP_DeInit(void);
void APP_Init(void);
void APP_Handle(void *arg);
void APP_TimerCallback(void);


#ifdef __cplusplus
}
#endif

#endif/* __APP_TASK_H */

/* END OF FILE ---------------------------------------------------------------*/
